package br.com.itc.componentes.modulos
{
	import mx.controls.DataGrid;
	import mx.events.FlexEvent;
	
	public class DataGridITC extends DataGrid
	{
		
		public function DataGridITC(){
			super();
			this.addEventListener(FlexEvent.CREATION_COMPLETE, init);
			this.styleName = "myText";
		}
		
		private function init(event: FlexEvent): void {
			this.rowCount = numeroLinhas;
		}		
		
		private var _numeroLinhas: int = 20;
		
		public function get numeroLinhas(): int {
			return this._numeroLinhas;
		}
		
		public function set numeroLinhas(numeroLinhas: int): void {
			this._numeroLinhas = numeroLinhas;
		}
		
		public function selecionarItem(): Object {
			return this.selectedItem;
		}
	}
}